<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link href="vendor/loading/loading.css" rel="stylesheet"> 
	</head>
	<body>
		<button id="btn1">test ajax</button>
		<div id="content" style="width:480px;height: 300px;background-color: yellow;"></div>
		<div id="content1" style="width:180px;height: 100px;background-color: burlywood;"></div>
		
	
	<script src="vendor/jquery/jquery.min.js"></script>
	<script src="vendor/loading/loading.js"></script>
	<script>
		
		var $target=$('#content');
		//$target=null;//开启为body
		
		$('#btn1').on('click',function(e){
			$.ajax({
				type:"GET",
				url:"http://api.jisuapi.com/illegal/carorg?appkey=yourappkey",
				data: null,
				global: false,
				dataType: "JSONP",
				beforeSend:function(e){
					zonxt_com_lodding.show($target);
				},
				complete:function(e){
					zonxt_com_lodding.hide();
				},
				success:function(resp){
					
				},
				error:function(resp){
					
				}
			});
		});
		
		
		
	</script>
</body>
</html>
